public class Main {
    public static void main(String[] args) {
        Receiver receiver = new Receiver();
        Command command = new ConcreteCommand(receiver);
        Invoker invoker = new Invoker();
        invoker.SetCommand(command);
        System.out.println(receiver.Action());
        System.out.println(invoker.ExecuteCommand());

    }
}